<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>  
    // 网页加载完毕事件
    window.onload= function(){
        var h1= document.querySelector('#my')
        h1.innerHTML = '第四种....国服寡妇';
    }  
    </script>
</head>
<body>
    <h1>放 head 和 body 的区别</h1>
     <h1 id="my">国服龙龟</h1> 

    <h1>输出信息 4种方式</h1>
    <script>
        //alert('第一种 ...temo');
        // document.write('第二种....德玛')
        // console.log('第三种方式....JS ');

        //字面量
        /*
        let a = 1000;
        let b = '国服龙龟';
        let c  = [1,2,3,'a','b','c'];
        let d = { phone: "1359900000", addr:'湖南长沙' }
        console.log( d.phone , d.addr);
*/

       // 区分大小写吗？
       var b = 0x3040;
        var e = 0x31ff;
        
        for (var i = b,j=0;i<=e;i++,j++) {
            var t = String.fromCodePoint(i);
            if(j%20==0){
                document.write("<br>"+j);
            }
            document.write(t);
        }

    </script>
     
</body>
</html>